import o from"./Wrapper.js";import{_ as i}from"./index.vue_vue_type_style_index_0_lang2.js";import{d as t,e as d,r as l,P as m,Q as c,$ as r,X as k,R as a,K as p,a2 as u,a5 as g}from"./elementPlusModules.js";const y={class:"merak-card merak-container-has-search"},N=a("div",{style:{padding:"10px","background-color":"#eee"}},"搜索区域",-1),f={class:"merak-table-wrapper"},b=t({__name:"SerachTable",setup(h){const s=d(`
<template>
  <Wrapper>
    <div class="merak-card merak-container-has-search">
      <div style="padding: 10px; background-color: #eee">搜索区域</div>
      <div class="merak-table-wrapper">
        <MerakXTable
          :columns-by-store="JSON.parse(JSON.stringify(state.columns))"
          :columns="state.columns"
          :data="state.data"
          :show-header="false"
          :pagination="false"
        />
      </div>
    </div>
  </Wrapper>
</template>

<script setup lang="ts">
import { ref, reactive } from "vue";

import Wrapper from "./Wrapper.vue";

import MerakXTable, { MerakXTableColumn } from "../../../../../../components/MerakXTable";

const state = reactive<{
  columns: MerakXTableColumn[];
  data: Array<{ [k: string]: any }>;
}>({
  columns: [
    { field: "name", title: "Name" },
    { field: "age", title: "Age" },
    { field: "address", title: "Address" }
  ],
  data: [
    {
      id: "1",
      name: "John Brown",
      age: 32,
      address: "New York No. 1 Lake Park",
      description: "My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park."
    },
    {
      id: "2",
      name: "Jim Green",
      age: 42,
      address: "London No. 1 Lake Park",
      description: "My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park."
    },
    {
      id: "3",
      name: "Not Expandable",
      age: 29,
      address: "Jiangsu No. 1 Lake Park",
      description: "This not expandable"
    },
    {
      id: "4",
      name: "Joe Black",
      age: 32,
      address: "Sydney No. 1 Lake Park",
      description: "My name is Joe Black, I am 32 years old, living in Sydney No. 1 Lake Park."
    }
  ]
});
<\/script>
`),e=l({columns:[{field:"name",title:"Name"},{field:"age",title:"Age"},{field:"address",title:"Address"}],data:[{id:"1",name:"John Brown",age:32,address:"New York No. 1 Lake Park",description:"My name is John Brown, I am 32 years old, living in New York No. 1 Lake Park."},{id:"2",name:"Jim Green",age:42,address:"London No. 1 Lake Park",description:"My name is Jim Green, I am 42 years old, living in London No. 1 Lake Park."},{id:"3",name:"Not Expandable",age:29,address:"Jiangsu No. 1 Lake Park",description:"This not expandable"},{id:"4",name:"Joe Black",age:32,address:"Sydney No. 1 Lake Park",description:"My name is Joe Black, I am 32 years old, living in Sydney No. 1 Lake Park."}]});return(n,v)=>(m(),c(g,null,[r(o,null,{default:k(()=>[a("div",y,[N,a("div",f,[r(p(i),{"columns-by-store":JSON.parse(JSON.stringify(e.columns)),columns:e.columns,data:e.data,"show-header":!1,pagination:!1},null,8,["columns-by-store","columns","data"])])])]),_:1}),u(n.$slots,"default",{html:s.value})],64))}});export{b as _};
